package com.example.springcloudexamineserver.service;

import com.example.springcloudexamineserver.dao.ExamineDao;
import com.example.springcloudexamineserver.entity.Model;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ExamineService {
    @Autowired
    private ExamineDao examinedao;

    public Model querySimility (double simility) {return examinedao.selectBySimility(simility);}

    public  void addSimility (String simility,String modelid) {examinedao.updateSimility(simility,modelid);}

    public void addSameFile (Model model) {examinedao.updateSameFile(model.getSamefile(),model.getModelid());}

    public String querySimilityById (String modelid) {return examinedao.selectSimilityById(modelid);}
}
